<template>
  <span v-if="count" class="image-badge">
    <img src="../svgs/images.svg" class="w-18 h-18 m-r-6" alt="images" />
    <span>{{ count }}</span>
  </span>
</template>

<script setup>
defineProps({
  count: [Number, String],
});
</script>

<style lang="scss" scoped>
.image-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 4px;
  color: #fff;
  font-size: 12px;
  line-height: normal;
  z-index: 10;
}
</style>
